﻿<%@ Import Namespace="NetDon.OA.Interface.Configuration" %>
<%@ Import Namespace="NetDon.Utilities" %>
<%@ Import Namespace="NetDon.OA.Interface" %>


<%@ Page Language="C#" MasterPageFile="~/Dialog.Master" AutoEventWireup="true"
    CodeBehind="EventView.aspx.cs" Inherits="NetDon.OA.Portal.Admin.EventView" Title="Event Detail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   <div style="background-color: White">
        <NetDon:FormPanel ID="FormPanel1" runat="server" CaptionAlign="NotSet" RepeatColumns="1"
            Width="100%" >
            <Items>
                <NetDon:FormItem HeaderText="日志时间">
                    <ContentTemplate>
                        <asp:Label ID="lblDate" runat="server" SkinID="LabelContent" Width="370px" Text='<%# Eval("LogTime","{0:"+SystemConfiguration.DateTimeFormat+"}") %>'></asp:Label>
                    </ContentTemplate>
                </NetDon:FormItem>
                <NetDon:FormItem HeaderText="日志类别">
                    <ContentTemplate>
                        <asp:Label ID="lblCategory" runat="server" Text='<%# Eval("Category") %>' SkinID="LabelContent" Width="370px"></asp:Label>
                    </ContentTemplate>
                </NetDon:FormItem>
                <NetDon:FormItem HeaderText="类型类型">
                    <ContentTemplate>
                        <asp:Label ID="lblType" runat="server" SkinID="LabelContent" Width="370px" Text='<%# EnumUtilities.GetDescription((LogLevel)(int)Eval("Level")) %>'></asp:Label>
                    </ContentTemplate>
                </NetDon:FormItem>
                <NetDon:FormItem HeaderText="用户">
                    <ContentTemplate>
                        <asp:Label ID="lblUser" runat="server" SkinID="LabelContent" Width="370px" Text='<%# string.IsNullOrEmpty(Convert.ToString(Eval("UserName")))?"Unknown":Eval("UserName") %>'></asp:Label>
                    </ContentTemplate>
                </NetDon:FormItem>
                <NetDon:FormItem HeaderText="日志来源">
                    <ContentTemplate>
                        <asp:Label ID="lblSource" runat="server" Text='<%# Eval("Source") %>' SkinID="LabelContent" Width="370px"></asp:Label>
                    </ContentTemplate>
                </NetDon:FormItem>
                <NetDon:FormItem HeaderText="日志内容">
                </NetDon:FormItem>
            </Items>
        </NetDon:FormPanel>
        <nobr>
            <asp:Panel runat="server" ID="panelMessage" Style="overflow: auto; margin-left:5px;
                height: 280px"  SkinID="LabelContent" Width="450px">
            </asp:Panel>
        </nobr>
        <div style="text-align: center; margin-top: 10px;">
            <asp:Button ID="btnClose" runat="server" Text="关闭" />
            <br /><br />
        </div>
    </div>
</asp:Content>
